<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$pagetitle}</title>
	<link rel="stylesheet" href="/static/index/css/feedback.css" media="all">
</head>
<body class="feedback_bg">
	<h1 class="feedback-title">{$pagetitle}</h1>
<form action="{:url('add')}" method="post" class="feedback" onsubmit="return save_form(this,function(){alert('恭喜您留言提交成功！');history.go(0)})">
    <input type="hidden" name="catid" value="{$cat.catid}">
    {$feedbackTemp|raw}
    {if $cat.mobile_verify_code}
    <div class="control-group">
        <label class="control-label">短信验证码</label>
        <div class="controls">
            <div class="mobile_code"><input type="text" name="mobile_verify_code" class="span6" /></div>
			<div class="mobile_button"><button type="button" id="btnSendCode"/>获取验证码</button></div>
        </div>
    </div>
    {/if}	
    {if $cat.verify_code}
    <div class="control-group">
        <label class="control-label">图形验证码</label>
        <div class="controls">
            <input type="text" name="verfy_code" class="span6" value="" style=""/><img src="{:captcha_src()}" class="verifyimg reloadverify" alt="点击切换">
        </div>
    </div>
    {/if}
<button type="submit">提交</button>
</form>
</body>
</html>
<!--公共必要的JS-->
<script src="/static/admin/layui/layui.js"></script>
<script src="/static/js/jquery.min.js"></script>    
<script src="/static/js/globals.js"></script> 
<script src="/static/index/js/feedback.js"></script> 